<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-bean" prefix="bean"%>
<%@ taglib uri="/struts-html" prefix="html"%>
<%@ taglib uri="/struts-logic" prefix="logic"%>
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title>相片信息页面</title>
		<link href="/css/style.css" rel="stylesheet" type="text/css" />
	</head>
	<script type="text/javascript" src="/js/prototype-1.5.1.2.js"
		charset="UTF-8"></script>
	<script language="javascript">


//上传相片
function upload(){
document.all.omethod.value="add";
document.forms[0].submit();
document.all.omethod.value="";
}
//处理提交信息
function next(){
   window.open("/com/struts/web/user/register/regfinish.do","_parent");
   }
  
  function reset(){
  document.forms[0].reset();
  }
</script>
	<body>
		<html:form action="/com/struts/web/user/register/reguserpicture"
			method="post" enctype="multipart/form-data">
			<html:hidden property="omethod" />
			<table width="880" border="0" align="center" cellpadding="0"
				cellspacing="0">
				<%@ include file="/jsp/top.jsp"%>
				<tr>
					<td align="center" valign="top">
						<table width="880" border="0" cellpadding="0" cellspacing="8"
							bgcolor="#FFFFFF">
							<tr>
								<td colspan="2" align="center" valign="top">
									<img src="/images/index_36.gif" width="721" height="54" />
								</td>
							</tr>
							<tr>
								<td colspan="2" align="center" valign="top">
									<table width="880" border="0" cellpadding="0" cellspacing="0"
										class="form">
										<tr>
											<td width="206" rowspan="3" align="center" valign="top">
												<img
													src="<bean:write name='com_struts_web_user_register_registerPictureForm' property='pictureUrl'/>" />
											</td>
											<td width="334" height="127" align="left" valign="bottom">
												（照片格式为JPG或者GIF，像素大小为80×90）
											</td>
											<td width="175" align="left" valign="bottom">
												&nbsp;
											</td>
										</tr>
										<tr>
											<td width="175" align="left" valign="bottom" colspan="2">
												<html:file property="picture" size="62"></html:file>
										</tr>
										<tr>
											<td width="334" align="left">
												&nbsp;
											</td>
											<td align="left">
												<input type="button" style="cursor:hand" onclick="upload()"
													value="上传照片" />
											</td>
										</tr>

									</table>
								</td>
							</tr>
							<tr>
								<td colspan="2" align="center" valign="top">
									&nbsp;
								</td>
							</tr>
							<tr>
								<td width="50%" align="right" valign="top">
									<img src="/images/reg2.gif" width="63" height="28"
										style="cursor:hand" onclick="reset()" />
								</td>
								<td align="left" valign="top">
									<img src="/images/reg3.gif" width="94" height="28" style="cursor:hand"   onclick="next()"/>
								</td>
							</tr>
						</table>
					</td>
				</tr>
				<%@ include file="/jsp/bottom.jsp"%>
			</table>
			</html:form>
	</body>
</html>
